<view>
    <swiper style='height: {{imageHeight}}rpx' class="swiper" indicator-dots="true" autoplay="true" interval="5000" duration="500">
        <block wx:for="{{movies}}" wx:for-index="index">
            <swiper-item>
                <image bindtap='turnTar' data-code='{{item.url}}' src="{{item.image}}" class="slide-image" mode="scaleToFill" />
            </swiper-item>
        </block>
    </swiper>
    <view id='listView'>
        <label class="list_item" wx:if='{{codeList.length==0}}' bindtap='chooseShop'>
            <span>
                <image src="{{imageUrl}}/pinTuan_positon.png" class="slide-image" mode="aspectFill" />
                <p class="longName">{{shopName}}</p>
            </span>
        </label>
        <label class="list_item" wx:for='{{codeList}}' wx:if='{{codeList}}' bindtap='turnOrderDetail' data-code='{{item.orderCode}}'>
            <span>
                <image src="{{imageUrl}}/pinTuan_positon.png" class="slide-image" mode="aspectFill" />
                <p class="shortName">{{item.address}}</p>
            </span>
            <span>
                <ul>
                    <li wx:for='{{item.pickingCode}}'>{{item}}</li>
                </ul>
                <div>取餐码：</div>
            </span>
        </label>
    </view>
    <view id='arrView'>
        <label class="arr_item" wx:if='{{groupList.length==0}}' bindtap='goGroup'>
            <image class='arr_log' src="{{imageUrl}}/pinTuan_my.png" mode="aspectFill" />
            <span class="line"></span>
            <span class="num_style">去参团</span>
            <image class='next_log' src="{{imageUrl}}/pinTuan_next.png" mode="aspectFill" />
        </label>
        <label class="arr_item" wx:for='{{groupList}}' wx:if='{{groupList}}' bindtap='turnGroupDetail' data-gid='{{item.groupCode}}' data-code='{{item.orderCode}}' data-type='{{item.status}}'>
            <image class='arr_log' src="{{imageUrl}}/pinTuan_my.png" mode="aspectFill" />
            <span class="line"></span>
            <span wx:if='{{item.status==2}}' class="num_style">拼团失败</span>
            <span wx:if='{{item.status==1}}' class="num_style">拼团成功</span>
            <span wx:if='{{item.status==0}}' class="num_style">差{{item.shortNum}}人成功</span>
            <image class='next_log' src="{{imageUrl}}/pinTuan_next.png" mode="aspectFill" />
        </label>
    </view>
    <view id='entrance'>
        <view class='ent_style' bindtap='turn' data-path='/pages/index/index'>
            <span>扫码自购</span>
            <image src="{{imageUrl}}/pinTuan_logo1.png" mode="aspectFill" />
        </view>
        <view class='ent_style' bindtap='turn' data-path='/pages/group/group'>
            <span>拼团</span>
            <image src="{{imageUrl}}/pinTuan_logo2.png" mode="aspectFill" />
        </view>
        <view class='ent_style' bindtap='turn' data-path='/pages/reserve/reserve'>
            <span>外卖自提</span>
            <image src="{{imageUrl}}/pinTuan_logo3.png" mode="aspectFill" />
        </view>
    </view>
    <image wx:if='{{btUrl[0].image}}' bindtap='turnSecondPage' data-code='{{btUrl[0].url}}' class='act_img' src="{{btUrl[0].image}}" mode="aspectFill" />
    <image wx:else class='act_img' src="{{imageUrl}}/group_indexv2.png" mode="aspectFill" />
   <!--  <form bindsubmit="formSubmit" report-submit='true'>
        <button formType="submit" class='btn'>
            <view class="vv">
                fff
            </view>
        </button>
    </form> -->
</view>